package com.demo.zhlg.service;

import com.mybatisflex.core.service.IService;
import com.demo.zhlg.entity.Tasks;

/**
 *  服务层。
 *
 * @author lenovo
 * @since 2025-04-26
 */
public interface TasksService extends IService<Tasks> {
    Object increaseViewCount(Integer taskId);
    Object applyTask(Integer taskId);
    Object getSimilarTasks(Integer taskId);
    Object searchTasks(String keyword);
    Object publishTask(Tasks task);
    Object getMyPublishedTasks();
    Object getMyAppliedTasks();
    Object cancelApply(Integer taskId);
    Object cancelTask(Integer taskId);
    Object generateOrder(Integer taskId);
    Object isPublisher(Integer taskId);
    Object isAlreadyApplied(Integer taskId);
    Object getTaskList();
    Object getTaskByCategory(Integer categoryId);
    Object updateTaskExpiration();
}
